home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 10 / BBS In A Box Volume X (AMUG) (January 1994).bin / Files / Prog / U-Z / VideoToolBox.cpt / VideoToolboxSources / HideMenuBar.c < prev    next >
MacBinary  |  1993-03-10  |  5.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Mar 10 14:47:09 1993, modified Wed Mar 10 14:47:09 1993, creator Think C, type ASCII, 3959 bytes "HideMenuBar.c" , at 0xff7 1126 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 48 69 64 65 4d 65 | 6e 75 42 61 72 2e 63 00 |..HideMe|nuBar.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0f 77 00 | 00 04 66 a7 c3 f6 3d a7 |......w.|..f...=.|
|00000060| c3 f6 3d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..=.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d8 7b 00 00 |........|.....{..|
|00000080| 2f 2a 0d 48 69 64 65 4d | 65 6e 75 42 61 72 2e 63 |/*.HideM|enuBar.c|
|00000090| 0d 0d 42 61 73 65 64 20 | 6f 6e 3a 0d 0d 22 43 6f |..Based |on:.."Co|
|000000a0| 64 65 20 67 61 64 67 65 | 74 73 3a 20 48 69 64 69 |de gadge|ts: Hidi|
|000000b0| 6e 67 20 74 68 65 20 6d | 65 6e 75 20 62 61 72 22 |ng the m|enu bar"|
|000000c0| 2c 20 54 48 49 4e 4b 69 | 6e 27 20 43 61 50 2c 20 |, THINKi|n' CaP, |
|000000d0| 31 28 32 29 3a 32 38 2d | 32 39 2c 20 46 61 6c 6c |1(2):28-|29, Fall|
|000000e0| 20 31 39 39 30 2e 0d 43 | 6f 70 79 72 69 67 68 74 | 1990..C|opyright|
|000000f0| 20 a9 20 31 39 39 31 20 | 53 50 4c 41 73 68 20 52 | . 1991 |SPLAsh R|
|00000100| 65 73 6f 75 72 63 65 73 | 2e 0d 0d 61 6e 64 0d 0d |esources|...and..|
|00000110| 53 79 6d 61 6e 74 65 63 | 20 54 48 49 4e 4b 20 52 |Symantec| THINK R|
|00000120| 65 66 65 72 65 6e 63 65 | 20 32 2c 20 22 48 6f 77 |eference| 2, "How|
|00000130| 20 74 6f 20 48 69 64 65 | 20 74 68 65 20 4d 65 6e | to Hide| the Men|
|00000140| 75 42 61 72 22 2e 0d 0d | 48 49 53 54 4f 52 59 3a |uBar"...|HISTORY:|
|00000150| 0d 32 2f 32 38 2f 39 31 | 20 64 67 70 20 61 64 64 |.2/28/91| dgp add|
|00000160| 65 64 20 74 6f 20 56 69 | 64 65 6f 54 6f 6f 6c 62 |ed to Vi|deoToolb|
|00000170| 6f 78 0d 38 2f 32 34 2f | 39 31 09 64 67 70 09 4d |ox.8/24/|91.dgp.M|
|00000180| 61 64 65 20 63 6f 6d 70 | 61 74 69 62 6c 65 20 77 |ade comp|atible w|
|00000190| 69 74 68 20 54 48 49 4e | 4b 20 43 20 35 2e 0d 31 |ith THIN|K C 5..1|
|000001a0| 2f 32 35 2f 39 33 20 64 | 67 70 20 72 65 6d 6f 76 |/25/93 d|gp remov|
|000001b0| 65 64 20 6f 62 73 6f 6c | 65 74 65 20 73 75 70 70 |ed obsol|ete supp|
|000001c0| 6f 72 74 20 66 6f 72 20 | 54 48 49 4e 4b 20 43 20 |ort for |THINK C |
|000001d0| 34 2e 0d 31 2f 32 35 2f | 39 33 09 64 67 70 20 52 |4..1/25/|93.dgp R|
|000001e0| 65 70 6c 61 63 65 64 20 | 53 79 73 45 71 75 2e 68 |eplaced |SysEqu.h|
|000001f0| 20 62 79 20 4c 6f 4d 65 | 6d 2e 68 20 61 6e 64 20 | by LoMe|m.h and |
|00000200| 63 68 61 6e 67 65 64 20 | 70 72 6f 67 72 61 6d 20 |changed |program |
|00000210| 61 63 63 6f 72 64 69 6e | 67 6c 79 2e 0d 32 2f 32 |accordin|gly..2/2|
|00000220| 33 2f 39 33 09 64 67 70 | 09 43 61 6c 6c 20 43 6f |3/93.dgp|.Call Co|
|00000230| 70 79 51 75 69 63 6b 44 | 72 61 77 47 6c 6f 62 61 |pyQuickD|rawGloba|
|00000240| 6c 73 20 74 6f 20 6d 61 | 6b 65 20 73 75 72 65 20 |ls to ma|ke sure |
|00000250| 71 64 20 69 73 20 76 61 | 6c 69 64 2e 0d 32 2f 32 |qd is va|lid..2/2|
|00000260| 37 2f 39 33 09 64 67 70 | 20 45 64 69 74 65 64 20 |7/93.dgp| Edited |
|00000270| 74 68 65 20 63 6f 64 65 | 20 61 6e 64 20 63 6f 6d |the code| and com|
|00000280| 6d 65 6e 74 73 2c 20 70 | 61 72 74 6c 79 20 63 6f |ments, p|artly co|
|00000290| 70 79 69 6e 67 20 66 72 | 6f 6d 20 54 48 49 4e 4b |pying fr|om THINK|
|000002a0| 20 52 65 66 65 72 65 6e | 63 65 27 73 0d 09 09 09 | Referen|ce's....|
|000002b0| 73 75 67 67 65 73 74 69 | 6f 6e 20 66 6f 72 20 68 |suggesti|on for h|
|000002c0| 6f 77 20 74 6f 20 64 6f | 20 74 68 69 73 2e 20 54 |ow to do| this. T|
|000002d0| 68 69 73 20 77 61 73 20 | 70 72 6f 6d 70 74 65 64 |his was |prompted|
|000002e0| 20 62 79 20 44 61 76 69 | 64 20 42 72 61 69 6e 61 | by Davi|d Braina|
|000002f0| 72 64 27 73 0d 09 09 09 | 72 65 70 6f 72 74 20 74 |rd's....|report t|
|00000300| 68 61 74 20 74 68 65 73 | 65 20 72 6f 75 74 69 6e |hat thes|e routin|
|00000310| 65 73 20 77 65 72 65 20 | 63 72 61 73 68 69 6e 67 |es were |crashing|
|00000320| 20 77 68 65 6e 20 63 61 | 6c 6c 65 64 20 77 69 74 | when ca|lled wit|
|00000330| 68 69 6e 20 74 68 65 0d | 09 09 09 4d 61 74 4c 61 |hin the.|...MatLa|
|00000340| 62 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 2e 20 54 |b enviro|nment. T|
|00000350| 68 65 20 6d 61 69 6e 20 | 63 68 61 6e 67 65 73 20 |he main |changes |
|00000360| 61 72 65 20 74 6f 20 61 | 6c 73 6f 20 63 61 6c 6c |are to a|lso call|
|00000370| 0d 09 09 09 43 61 6c 63 | 56 69 73 42 65 68 69 6e |....Calc|VisBehin|
|00000380| 64 28 29 20 61 66 74 65 | 72 20 72 65 73 74 6f 72 |d() afte|r restor|
|00000390| 69 6e 67 2c 20 61 6e 64 | 20 74 6f 20 75 73 65 20 |ing, and| to use |
|000003a0| 44 69 66 66 52 67 6e 0d | 09 09 09 74 6f 20 72 65 |DiffRgn.|...to re|
|000003b0| 73 74 6f 72 65 20 62 79 | 20 63 75 74 74 69 6e 67 |store by| cutting|
|000003c0| 20 74 68 65 20 6d 65 6e | 75 20 62 61 72 20 62 61 | the men|u bar ba|
|000003d0| 63 6b 20 6f 75 74 20 6f | 66 20 74 68 65 20 64 65 |ck out o|f the de|
|000003e0| 73 6b 74 6f 70 0d 09 09 | 09 69 6e 73 74 65 61 64 |sktop...|.instead|
|000003f0| 20 6f 66 20 72 65 73 74 | 6f 72 69 6e 67 20 62 79 | of rest|oring by|
|00000400| 20 63 6f 70 79 69 6e 67 | 20 66 72 6f 6d 20 61 20 | copying| from a |
|00000410| 73 61 76 65 64 20 63 6f | 70 79 20 6f 66 20 74 68 |saved co|py of th|
|00000420| 65 20 72 65 67 69 6f 6e | 2e 20 0d 33 2f 33 2f 39 |e region|. .3/3/9|
|00000430| 33 09 64 67 70 09 41 64 | 64 65 64 20 53 71 75 61 |3.dgp.Ad|ded Squa|
|00000440| 72 65 43 6f 72 6e 65 72 | 73 20 61 6e 64 20 52 65 |reCorner|s and Re|
|00000450| 73 74 6f 72 65 43 6f 72 | 6e 65 72 73 2c 20 77 69 |storeCor|ners, wi|
|00000460| 74 68 20 73 75 70 70 6f | 72 74 20 66 6f 72 20 31 |th suppo|rt for 1|
|00000470| 2d 62 69 74 20 71 75 69 | 63 6b 64 72 61 77 2e 0d |-bit qui|ckdraw..|
|00000480| 2a 2f 0d 23 69 6e 63 6c | 75 64 65 20 22 56 69 64 |*/.#incl|ude "Vid|
|00000490| 65 6f 54 6f 6f 6c 62 6f | 78 2e 68 22 0d 23 69 6e |eoToolbo|x.h".#in|
|000004a0| 63 6c 75 64 65 20 3c 4d | 65 6e 75 73 2e 68 3e 0d |clude <M|enus.h>.|
|000004b0| 23 69 66 20 54 48 49 4e | 4b 5f 43 0d 09 23 69 6e |#if THIN|K_C..#in|
|000004c0| 63 6c 75 64 65 20 3c 4c | 6f 4d 65 6d 2e 68 3e 0d |clude <L|oMem.h>.|
|000004d0| 23 65 6c 73 65 0d 09 73 | 68 6f 72 74 20 4d 42 61 |#else..s|hort MBa|
|000004e0| 72 48 65 69 67 68 74 20 | 3a 20 30 78 42 41 41 3b |rHeight |: 0xBAA;|
|000004f0| 0d 23 65 6e 64 69 66 0d | 0d 73 74 61 74 69 63 20 |.#endif.|.static |
|00000500| 73 68 6f 72 74 20 6f 6c | 64 4d 42 61 72 48 65 69 |short ol|dMBarHei|
|00000510| 67 68 74 3b 09 09 09 09 | 09 2f 2f 20 50 69 78 65 |ght;....|.// Pixe|
|00000520| 6c 20 68 65 69 67 68 74 | 20 6f 66 20 74 68 65 20 |l height| of the |
|00000530| 6d 65 6e 75 20 62 61 72 | 0d 73 74 61 74 69 63 20 |menu bar|.static |
|00000540| 52 67 6e 48 61 6e 64 6c | 65 20 6d 42 61 72 52 67 |RgnHandl|e mBarRg|
|00000550| 6e 3d 4e 55 4c 4c 3b 09 | 09 09 09 2f 2f 20 52 65 |n=NULL;.|...// Re|
|00000560| 67 69 6f 6e 20 65 6e 63 | 6f 6d 70 61 73 73 69 6e |gion enc|ompassin|
|00000570| 67 20 74 68 65 20 6d 65 | 6e 75 20 62 61 72 0d 73 |g the me|nu bar.s|
|00000580| 74 61 74 69 63 20 52 67 | 6e 48 61 6e 64 6c 65 20 |tatic Rg|nHandle |
|00000590| 63 6f 72 6e 65 72 52 67 | 6e 5b 4d 41 58 5f 53 43 |cornerRg|n[MAX_SC|
|000005a0| 52 45 45 4e 53 5d 3b 0d | 0d 76 6f 69 64 20 48 69 |REENS];.|.void Hi|
|000005b0| 64 65 4d 65 6e 75 42 61 | 72 28 76 6f 69 64 29 0d |deMenuBa|r(void).|
|000005c0| 7b 0d 09 52 65 63 74 20 | 72 3b 0d 09 0d 09 69 66 |{..Rect |r;....if|
|000005d0| 20 28 4d 42 61 72 48 65 | 69 67 68 74 3e 30 29 20 | (MBarHe|ight>0) |
|000005e0| 7b 0d 09 09 6d 42 61 72 | 52 67 6e 3d 4e 65 77 52 |{...mBar|Rgn=NewR|
|000005f0| 67 6e 28 29 3b 0d 09 09 | 43 6f 70 79 51 75 69 63 |gn();...|CopyQuic|
|00000600| 6b 44 72 61 77 47 6c 6f | 62 61 6c 73 28 29 3b 09 |kDrawGlo|bals();.|
|00000610| 09 09 09 2f 2f 20 4d 61 | 6b 65 20 73 75 72 65 20 |...// Ma|ke sure |
|00000620| 71 64 20 69 73 20 76 61 | 6c 69 64 0d 09 09 72 3d |qd is va|lid...r=|
|00000630| 71 64 2e 73 63 72 65 65 | 6e 42 69 74 73 2e 62 6f |qd.scree|nBits.bo|
|00000640| 75 6e 64 73 3b 0d 09 09 | 72 2e 62 6f 74 74 6f 6d |unds;...|r.bottom|
|00000650| 3d 72 2e 74 6f 70 2b 4d | 42 61 72 48 65 69 67 68 |=r.top+M|BarHeigh|
|00000660| 74 3b 0d 09 09 52 65 63 | 74 52 67 6e 28 6d 42 61 |t;...Rec|tRgn(mBa|
|00000670| 72 52 67 6e 2c 26 72 29 | 3b 0d 09 09 6f 6c 64 4d |rRgn,&r)|;...oldM|
|00000680| 42 61 72 48 65 69 67 68 | 74 3d 4d 42 61 72 48 65 |BarHeigh|t=MBarHe|
|00000690| 69 67 68 74 3b 0d 09 09 | 4d 42 61 72 48 65 69 67 |ight;...|MBarHeig|
|000006a0| 68 74 3d 30 3b 0d 09 09 | 55 6e 69 6f 6e 52 67 6e |ht=0;...|UnionRgn|
|000006b0| 28 47 65 74 47 72 61 79 | 52 67 6e 28 29 2c 6d 42 |(GetGray|Rgn(),mB|
|000006c0| 61 72 52 67 6e 2c 47 65 | 74 47 72 61 79 52 67 6e |arRgn,Ge|tGrayRgn|
|000006d0| 28 29 29 3b 0d 09 09 50 | 61 69 6e 74 4f 6e 65 28 |());...P|aintOne(|
|000006e0| 4e 55 4c 4c 2c 6d 42 61 | 72 52 67 6e 29 3b 0d 09 |NULL,mBa|rRgn);..|
|000006f0| 09 43 61 6c 63 56 69 73 | 42 65 68 69 6e 64 28 28 |.CalcVis|Behind((|
|00000700| 57 69 6e 64 6f 77 50 65 | 65 6b 29 46 72 6f 6e 74 |WindowPe|ek)Front|
|00000710| 57 69 6e 64 6f 77 28 29 | 2c 6d 42 61 72 52 67 6e |Window()|,mBarRgn|
|00000720| 29 3b 0d 09 7d 0d 7d 0d | 0d 76 6f 69 64 20 53 68 |);..}.}.|.void Sh|
|00000730| 6f 77 4d 65 6e 75 42 61 | 72 28 76 6f 69 64 29 0d |owMenuBa|r(void).|
|00000740| 7b 0d 09 69 66 28 4d 42 | 61 72 48 65 69 67 68 74 |{..if(MB|arHeight|
|00000750| 3d 3d 30 20 26 26 20 6d | 42 61 72 52 67 6e 21 3d |==0 && m|BarRgn!=|
|00000760| 4e 55 4c 4c 29 7b 0d 09 | 09 4d 42 61 72 48 65 69 |NULL){..|.MBarHei|
|00000770| 67 68 74 3d 6f 6c 64 4d | 42 61 72 48 65 69 67 68 |ght=oldM|BarHeigh|
|00000780| 74 3b 0d 09 09 44 69 66 | 66 52 67 6e 28 47 65 74 |t;...Dif|fRgn(Get|
|00000790| 47 72 61 79 52 67 6e 28 | 29 2c 6d 42 61 72 52 67 |GrayRgn(|),mBarRg|
|000007a0| 6e 2c 47 65 74 47 72 61 | 79 52 67 6e 28 29 29 3b |n,GetGra|yRgn());|
|000007b0| 0d 09 09 44 72 61 77 4d | 65 6e 75 42 61 72 28 29 |...DrawM|enuBar()|
|000007c0| 3b 0d 09 09 43 61 6c 63 | 56 69 73 42 65 68 69 6e |;...Calc|VisBehin|
|000007d0| 64 28 28 57 69 6e 64 6f | 77 50 65 65 6b 29 46 72 |d((Windo|wPeek)Fr|
|000007e0| 6f 6e 74 57 69 6e 64 6f | 77 28 29 2c 6d 42 61 72 |ontWindo|w(),mBar|
|000007f0| 52 67 6e 29 3b 0d 09 09 | 44 69 73 70 6f 73 65 52 |Rgn);...|DisposeR|
|00000800| 67 6e 28 6d 42 61 72 52 | 67 6e 29 3b 0d 09 09 6d |gn(mBarR|gn);...m|
|00000810| 42 61 72 52 67 6e 3d 4e | 55 4c 4c 3b 0d 09 7d 0d |BarRgn=N|ULL;..}.|
|00000820| 7d 0d 0d 76 6f 69 64 20 | 53 71 75 61 72 65 43 6f |}..void |SquareCo|
|00000830| 72 6e 65 72 73 28 47 44 | 48 61 6e 64 6c 65 20 64 |rners(GD|Handle d|
|00000840| 65 76 69 63 65 29 0d 2f | 2f 20 45 78 74 65 6e 64 |evice)./|/ Extend|
|00000850| 20 47 72 61 79 52 67 6e | 20 74 6f 20 69 6e 63 6c | GrayRgn| to incl|
|00000860| 75 64 65 20 74 68 69 73 | 20 73 63 72 65 65 6e 27 |ude this| screen'|
|00000870| 73 20 63 6f 72 6e 65 72 | 73 2c 20 77 68 69 63 68 |s corner|s, which|
|00000880| 20 6f 74 68 65 72 77 69 | 73 65 20 6d 69 67 68 74 | otherwi|se might|
|00000890| 20 62 65 20 72 6f 75 6e | 64 65 64 20 6f 66 66 2e | be roun|ded off.|
|000008a0| 0d 2f 2f 20 49 66 20 4e | 55 4c 4c 20 74 68 65 6e |.// If N|ULL then|
|000008b0| 20 61 70 70 6c 69 65 73 | 20 74 6f 20 61 6c 6c 20 | applies| to all |
|000008c0| 73 63 72 65 65 6e 73 2e | 0d 7b 0d 09 69 6e 74 20 |screens.|.{..int |
|000008d0| 69 3b 0d 09 52 65 63 74 | 20 72 3b 0d 09 6c 6f 6e |i;..Rect| r;..lon|
|000008e0| 67 20 71 75 69 63 6b 44 | 72 61 77 3b 0d 09 0d 09 |g quickD|raw;....|
|000008f0| 47 65 73 74 61 6c 74 28 | 67 65 73 74 61 6c 74 51 |Gestalt(|gestaltQ|
|00000900| 75 69 63 6b 64 72 61 77 | 56 65 72 73 69 6f 6e 2c |uickdraw|Version,|
|00000910| 26 71 75 69 63 6b 44 72 | 61 77 29 3b 0d 09 69 66 |&quickDr|aw);..if|
|00000920| 28 71 75 69 63 6b 44 72 | 61 77 3c 67 65 73 74 61 |(quickDr|aw<gesta|
|00000930| 6c 74 38 42 69 74 51 44 | 29 7b 0d 09 09 69 3d 30 |lt8BitQD|){...i=0|
|00000940| 3b 0d 09 09 43 6f 70 79 | 51 75 69 63 6b 44 72 61 |;...Copy|QuickDra|
|00000950| 77 47 6c 6f 62 61 6c 73 | 28 29 3b 09 09 09 09 2f |wGlobals|();..../|
|00000960| 2f 20 4d 61 6b 65 20 73 | 75 72 65 20 71 64 20 69 |/ Make s|ure qd i|
|00000970| 73 20 76 61 6c 69 64 0d | 09 09 72 3d 71 64 2e 73 |s valid.|..r=qd.s|
|00000980| 63 72 65 65 6e 42 69 74 | 73 2e 62 6f 75 6e 64 73 |creenBit|s.bounds|
|00000990| 3b 0d 09 09 72 2e 74 6f | 70 2b 3d 4d 42 61 72 48 |;...r.to|p+=MBarH|
|000009a0| 65 69 67 68 74 3b 0d 09 | 7d 65 6c 73 65 7b 0d 09 |eight;..|}else{..|
|000009b0| 09 69 66 28 64 65 76 69 | 63 65 3d 3d 4e 55 4c 4c |.if(devi|ce==NULL|
|000009c0| 29 7b 0d 09 09 09 66 6f | 72 28 69 3d 30 3b 47 65 |){....fo|r(i=0;Ge|
|000009d0| 74 53 63 72 65 65 6e 44 | 65 76 69 63 65 28 69 29 |tScreenD|evice(i)|
|000009e0| 21 3d 4e 55 4c 4c 3b 69 | 2b 2b 29 53 71 75 61 72 |!=NULL;i|++)Squar|
|000009f0| 65 43 6f 72 6e 65 72 73 | 28 47 65 74 53 63 72 65 |eCorners|(GetScre|
|00000a00| 65 6e 44 65 76 69 63 65 | 28 69 29 29 3b 0d 09 09 |enDevice|(i));...|
|00000a10| 09 72 65 74 75 72 6e 3b | 0d 09 09 7d 0d 09 09 69 |.return;|...}...i|
|00000a20| 3d 47 65 74 53 63 72 65 | 65 6e 49 6e 64 65 78 28 |=GetScre|enIndex(|
|00000a30| 64 65 76 69 63 65 29 3b | 0d 09 09 69 66 28 69 3e |device);|...if(i>|
|00000a40| 3d 4d 41 58 5f 53 43 52 | 45 45 4e 53 29 72 65 74 |=MAX_SCR|EENS)ret|
|00000a50| 75 72 6e 3b 0d 09 09 72 | 3d 28 2a 64 65 76 69 63 |urn;...r|=(*devic|
|00000a60| 65 29 2d 3e 67 64 52 65 | 63 74 3b 0d 09 09 69 66 |e)->gdRe|ct;...if|
|00000a70| 28 64 65 76 69 63 65 3d | 3d 47 65 74 4d 61 69 6e |(device=|=GetMain|
|00000a80| 44 65 76 69 63 65 28 29 | 29 72 2e 74 6f 70 2b 3d |Device()|)r.top+=|
|00000a90| 4d 42 61 72 48 65 69 67 | 68 74 3b 0d 09 7d 0d 09 |MBarHeig|ht;..}..|
|00000aa0| 63 6f 72 6e 65 72 52 67 | 6e 5b 69 5d 3d 4e 65 77 |cornerRg|n[i]=New|
|00000ab0| 52 67 6e 28 29 3b 0d 09 | 52 65 63 74 52 67 6e 28 |Rgn();..|RectRgn(|
|00000ac0| 63 6f 72 6e 65 72 52 67 | 6e 5b 69 5d 2c 26 72 29 |cornerRg|n[i],&r)|
|00000ad0| 3b 0d 09 44 69 66 66 52 | 67 6e 28 63 6f 72 6e 65 |;..DiffR|gn(corne|
|00000ae0| 72 52 67 6e 5b 69 5d 2c | 47 65 74 47 72 61 79 52 |rRgn[i],|GetGrayR|
|00000af0| 67 6e 28 29 2c 63 6f 72 | 6e 65 72 52 67 6e 5b 69 |gn(),cor|nerRgn[i|
|00000b00| 5d 29 3b 0d 09 69 66 28 | 45 6d 70 74 79 52 67 6e |]);..if(|EmptyRgn|
|00000b10| 28 63 6f 72 6e 65 72 52 | 67 6e 5b 69 5d 29 29 72 |(cornerR|gn[i]))r|
|00000b20| 65 74 75 72 6e 3b 0d 09 | 55 6e 69 6f 6e 52 67 6e |eturn;..|UnionRgn|
|00000b30| 28 47 65 74 47 72 61 79 | 52 67 6e 28 29 2c 63 6f |(GetGray|Rgn(),co|
|00000b40| 72 6e 65 72 52 67 6e 5b | 69 5d 2c 47 65 74 47 72 |rnerRgn[|i],GetGr|
|00000b50| 61 79 52 67 6e 28 29 29 | 3b 0d 09 50 61 69 6e 74 |ayRgn())|;..Paint|
|00000b60| 42 65 68 69 6e 64 28 28 | 57 69 6e 64 6f 77 50 65 |Behind((|WindowPe|
|00000b70| 65 6b 29 46 72 6f 6e 74 | 57 69 6e 64 6f 77 28 29 |ek)Front|Window()|
|00000b80| 2c 63 6f 72 6e 65 72 52 | 67 6e 5b 69 5d 29 3b 0d |,cornerR|gn[i]);.|
|00000b90| 09 43 61 6c 63 56 69 73 | 42 65 68 69 6e 64 28 28 |.CalcVis|Behind((|
|00000ba0| 57 69 6e 64 6f 77 50 65 | 65 6b 29 46 72 6f 6e 74 |WindowPe|ek)Front|
|00000bb0| 57 69 6e 64 6f 77 28 29 | 2c 63 6f 72 6e 65 72 52 |Window()|,cornerR|
|00000bc0| 67 6e 5b 69 5d 29 3b 0d | 7d 0d 0d 76 6f 69 64 20 |gn[i]);.|}..void |
|00000bd0| 52 65 73 74 6f 72 65 43 | 6f 72 6e 65 72 73 28 47 |RestoreC|orners(G|
|00000be0| 44 48 61 6e 64 6c 65 20 | 64 65 76 69 63 65 29 0d |DHandle |device).|
|00000bf0| 2f 2f 20 52 65 73 74 6f | 72 65 20 72 6f 75 6e 64 |// Resto|re round|
|00000c00| 69 6e 67 20 74 6f 20 74 | 68 69 73 20 73 63 72 65 |ing to t|his scre|
|00000c10| 65 6e 2e 0d 2f 2f 20 49 | 66 20 4e 55 4c 4c 20 74 |en..// I|f NULL t|
|00000c20| 68 65 6e 20 61 70 70 6c | 69 65 73 20 74 6f 20 61 |hen appl|ies to a|
|00000c30| 6c 6c 20 73 63 72 65 65 | 6e 73 2e 0d 7b 0d 09 69 |ll scree|ns..{..i|
|00000c40| 6e 74 20 69 3b 0d 09 6c | 6f 6e 67 20 71 75 69 63 |nt i;..l|ong quic|
|00000c50| 6b 44 72 61 77 3b 0d 09 | 0d 09 47 65 73 74 61 6c |kDraw;..|..Gestal|
|00000c60| 74 28 67 65 73 74 61 6c | 74 51 75 69 63 6b 64 72 |t(gestal|tQuickdr|
|00000c70| 61 77 56 65 72 73 69 6f | 6e 2c 26 71 75 69 63 6b |awVersio|n,&quick|
|00000c80| 44 72 61 77 29 3b 0d 09 | 69 66 28 71 75 69 63 6b |Draw);..|if(quick|
|00000c90| 44 72 61 77 3c 67 65 73 | 74 61 6c 74 38 42 69 74 |Draw<ges|talt8Bit|
|00000ca0| 51 44 29 7b 0d 09 09 69 | 3d 30 3b 0d 09 7d 65 6c |QD){...i|=0;..}el|
|00000cb0| 73 65 7b 0d 09 09 69 66 | 28 64 65 76 69 63 65 3d |se{...if|(device=|
|00000cc0| 3d 4e 55 4c 4c 29 7b 0d | 09 09 09 66 6f 72 28 69 |=NULL){.|...for(i|
|00000cd0| 3d 30 3b 47 65 74 53 63 | 72 65 65 6e 44 65 76 69 |=0;GetSc|reenDevi|
|00000ce0| 63 65 28 69 29 21 3d 4e | 55 4c 4c 3b 69 2b 2b 29 |ce(i)!=N|ULL;i++)|
|00000cf0| 52 65 73 74 6f 72 65 43 | 6f 72 6e 65 72 73 28 47 |RestoreC|orners(G|
|00000d00| 65 74 53 63 72 65 65 6e | 44 65 76 69 63 65 28 69 |etScreen|Device(i|
|00000d10| 29 29 3b 0d 09 09 09 72 | 65 74 75 72 6e 3b 0d 09 |));....r|eturn;..|
|00000d20| 09 7d 0d 09 09 69 3d 47 | 65 74 53 63 72 65 65 6e |.}...i=G|etScreen|
|00000d30| 49 6e 64 65 78 28 64 65 | 76 69 63 65 29 3b 0d 09 |Index(de|vice);..|
|00000d40| 09 69 66 28 69 3e 3d 4d | 41 58 5f 53 43 52 45 45 |.if(i>=M|AX_SCREE|
|00000d50| 4e 53 29 72 65 74 75 72 | 6e 3b 0d 09 7d 0d 09 69 |NS)retur|n;..}..i|
|00000d60| 66 28 63 6f 72 6e 65 72 | 52 67 6e 5b 69 5d 21 3d |f(corner|Rgn[i]!=|
|00000d70| 4e 55 4c 4c 29 7b 0d 2f | 2f 09 09 43 6f 70 79 51 |NULL){./|/..CopyQ|
|00000d80| 75 69 63 6b 44 72 61 77 | 47 6c 6f 62 61 6c 73 28 |uickDraw|Globals(|
|00000d90| 29 3b 09 09 09 2f 2f 20 | 4d 61 6b 65 20 73 75 72 |);...// |Make sur|
|00000da0| 65 20 71 64 20 69 73 20 | 76 61 6c 69 64 2e 0d 2f |e qd is |valid../|
|00000db0| 2f 09 09 46 69 6c 6c 52 | 67 6e 28 63 6f 72 6e 65 |/..FillR|gn(corne|
|00000dc0| 72 52 67 6e 5b 69 5d 2c | 71 64 2e 62 6c 61 63 6b |rRgn[i],|qd.black|
|00000dd0| 29 3b 09 2f 2f 20 64 6f | 6e 27 74 20 6b 6e 6f 77 |);.// do|n't know|
|00000de0| 20 77 68 61 74 20 70 6f | 72 74 20 69 74 20 62 65 | what po|rt it be|
|00000df0| 6c 6f 6e 67 73 20 74 6f | 0d 09 09 44 69 66 66 52 |longs to|...DiffR|
|00000e00| 67 6e 28 47 65 74 47 72 | 61 79 52 67 6e 28 29 2c |gn(GetGr|ayRgn(),|
|00000e10| 63 6f 72 6e 65 72 52 67 | 6e 5b 69 5d 2c 47 65 74 |cornerRg|n[i],Get|
|00000e20| 47 72 61 79 52 67 6e 28 | 29 29 3b 0d 09 09 44 69 |GrayRgn(|));...Di|
|00000e30| 73 70 6f 73 65 52 67 6e | 28 63 6f 72 6e 65 72 52 |sposeRgn|(cornerR|
|00000e40| 67 6e 5b 69 5d 29 3b 0d | 09 09 63 6f 72 6e 65 72 |gn[i]);.|..corner|
|00000e50| 52 67 6e 5b 69 5d 3d 4e | 55 4c 4c 3b 0d 09 7d 0d |Rgn[i]=N|ULL;..}.|
|00000e60| 7d 0d 0d 76 6f 69 64 20 | 55 6e 63 6c 69 70 53 63 |}..void |UnclipSc|
|00000e70| 72 65 65 6e 28 47 44 48 | 61 6e 64 6c 65 20 64 65 |reen(GDH|andle de|
|00000e80| 76 69 63 65 29 0d 7b 0d | 09 6c 6f 6e 67 20 71 75 |vice).{.|.long qu|
|00000e90| 69 63 6b 44 72 61 77 3b | 0d 0d 09 47 65 73 74 61 |ickDraw;|...Gesta|
|00000ea0| 6c 74 28 67 65 73 74 61 | 6c 74 51 75 69 63 6b 64 |lt(gesta|ltQuickd|
|00000eb0| 72 61 77 56 65 72 73 69 | 6f 6e 2c 26 71 75 69 63 |rawVersi|on,&quic|
|00000ec0| 6b 44 72 61 77 29 3b 0d | 09 69 66 28 71 75 69 63 |kDraw);.|.if(quic|
|00000ed0| 6b 44 72 61 77 3c 67 65 | 73 74 61 6c 74 38 42 69 |kDraw<ge|stalt8Bi|
|00000ee0| 74 51 44 20 7c 7c 20 64 | 65 76 69 63 65 3d 3d 47 |tQD || d|evice==G|
|00000ef0| 65 74 4d 61 69 6e 44 65 | 76 69 63 65 28 29 29 48 |etMainDe|vice())H|
|00000f00| 69 64 65 4d 65 6e 75 42 | 61 72 28 29 3b 0d 09 53 |ideMenuB|ar();..S|
|00000f10| 71 75 61 72 65 43 6f 72 | 6e 65 72 73 28 64 65 76 |quareCor|ners(dev|
|00000f20| 69 63 65 29 3b 0d 7d 0d | 0d 76 6f 69 64 20 52 65 |ice);.}.|.void Re|
|00000f30| 73 74 6f 72 65 53 63 72 | 65 65 6e 43 6c 69 70 70 |storeScr|eenClipp|
|00000f40| 69 6e 67 28 47 44 48 61 | 6e 64 6c 65 20 64 65 76 |ing(GDHa|ndle dev|
|00000f50| 69 63 65 29 0d 7b 0d 09 | 6c 6f 6e 67 20 71 75 69 |ice).{..|long qui|
|00000f60| 63 6b 44 72 61 77 3b 0d | 0d 09 52 65 73 74 6f 72 |ckDraw;.|..Restor|
|00000f70| 65 43 6f 72 6e 65 72 73 | 28 64 65 76 69 63 65 29 |eCorners|(device)|
|00000f80| 3b 0d 09 47 65 73 74 61 | 6c 74 28 67 65 73 74 61 |;..Gesta|lt(gesta|
|00000f90| 6c 74 51 75 69 63 6b 64 | 72 61 77 56 65 72 73 69 |ltQuickd|rawVersi|
|00000fa0| 6f 6e 2c 26 71 75 69 63 | 6b 44 72 61 77 29 3b 0d |on,&quic|kDraw);.|
|00000fb0| 09 69 66 28 71 75 69 63 | 6b 44 72 61 77 3c 67 65 |.if(quic|kDraw<ge|
|00000fc0| 73 74 61 6c 74 38 42 69 | 74 51 44 20 7c 7c 20 64 |stalt8Bi|tQD || d|
|00000fd0| 65 76 69 63 65 3d 3d 47 | 65 74 4d 61 69 6e 44 65 |evice==G|etMainDe|
|00000fe0| 76 69 63 65 28 29 29 53 | 68 6f 77 4d 65 6e 75 42 |vice())S|howMenuB|
|00000ff0| 61 72 28 29 3b 0d 7d 00 | 00 00 00 00 00 00 00 00 |ar();.}.|........|
|00001000| 00 00 01 00 00 00 04 0c | 00 00 03 0c 00 00 00 5a |........|.......Z|
|00001010| 09 09 09 09 2f 2a 20 44 | 6f 20 6e 6f 74 68 69 6e |..../* D|o nothin|
|00001020| 67 20 69 66 20 74 68 65 | 20 6d 65 6e 75 20 62 61 |g if the| menu ba|
|00001030| 0d 48 69 64 65 4d 65 6e | 75 42 61 72 2e 63 02 00 |.HideMen|uBar.c..|
|00001040| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|00001050| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 a7 e5 d5 ba 00 00 | 00 00 00 00 04 66 72 20 |........|.....fr |
|00001080| 68 65 69 67 68 74 09 09 | 2a 2f 0d 09 09 43 6f 70 |height..|*/...Cop|
|00001090| 79 52 67 6e 28 73 61 76 | 65 47 72 61 79 52 67 6e |yRgn(sav|eGrayRgn|
|000010a0| 2c 20 47 65 74 47 72 61 | 79 52 67 6e 28 29 29 3b |, GetGra|yRgn());|
|000010b0| 09 2f 2a 20 52 65 73 74 | 6f 72 65 20 74 68 65 20 |./* Rest|ore the |
|000010c0| 73 61 76 65 20 47 72 61 | 79 52 67 6e 09 09 09 09 |save Gra|yRgn....|
|000010d0| 09 2a 2f 0d 09 09 0d 09 | 09 44 69 73 70 6f 73 65 |.*/.....|.Dispose|
|000010e0| 52 67 6e 28 73 61 76 65 | 47 72 61 79 52 67 6e 29 |Rgn(save|GrayRgn)|
|000010f0| 3b 09 09 09 2f 2a 20 4e | 6f 20 6c 6f 6e 67 65 72 |;.../* N|o longer|
|00001100| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 ff 00 21 |...H..Mo|naco...!|
|00001110| 00 00 00 14 00 01 a2 98 | 00 0a 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 28 00 00 00 06 | 00 04 00 c8 00 08 01 dd |...(....|........|
|00001130| 02 3d 00 c8 00 08 01 dd | 02 3d a4 aa 95 8a 00 00 |.=......|.=......|
|00001140| 02 e5 00 00 02 e5 00 00 | 02 7f 01 00 00 00 00 0a |........|........|
|00001150| 00 00 05 4d 00 2b 00 00 | 00 00 00 00 02 ae 00 14 |...M.+..|........|
|00001160| 00 1a 00 00 05 62 00 2c | 00 00 00 00 00 00 0b 74 |.....b.,|.......t|
|00001170| 68 65 47 72 61 79 52 67 | 6e 20 00 16 00 00 05 62 |heGrayRg|n .....b|
|00001180| 00 2c 00 59 b3 58 00 00 | 07 6d 42 61 72 52 67 6e |.,.Y.X..|.mBarRgn|
|00001190| 00 2c 00 00 05 e3 00 30 | 00 59 b3 48 80 00 00 b7 |.,.....0|.Y.H....|
|000011a0| 01 3c 01 8c 02 7c 94 20 | 00 00 00 00 00 00 0d 71 |.<...|. |.......q|
|000011b0| 64 2e 73 63 72 65 65 6e | 42 69 74 73 00 22 00 00 |d.screen|Bits."..|
|000011c0| 05 e3 00 30 00 59 b2 d4 | 80 00 00 ae 01 3c 01 83 |...0.Y..|.....<..|
|000011d0| 02 7c 94 20 00 00 00 00 | 00 00 03 71 64 20 00 38 |.|. ....|...qd .8|
|000011e0| 00 00 0a 84 00 60 00 59 | b2 50 80 00 00 d0 01 3c |.....`.Y|.P.....<|
|000011f0| 01 79 02 7c 94 20 00 00 | 00 00 00 00 19 28 2a 2a |.y.|. ..|.....(**|
|00001200| 63 6f 72 6e 65 72 52 67 | 6e 5b 69 5d 29 2e 72 67 |cornerRg|n[i]).rg|
|00001210| 6e 42 42 6f 78 20 00 2e | 00 00 0a 84 00 60 00 59 |nBBox ..|.....`.Y|
|00001220| b1 d8 80 00 00 bc 01 3c | 01 65 02 7c 94 20 00 00 |.......<|.e.|. ..|
|00001230| 00 00 00 00 0f 2a 2a 63 | 6f 72 6e 65 72 52 67 6e |.....**c|ornerRgn|
|00001240| 5b 69 5d 20 00 1c 00 00 | 0a 84 00 60 00 59 b1 74 |[i] ....|...`.Y.t|
|00001250| 00 00 0d 2a 63 6f 72 6e | 65 72 52 67 6e 5b 69 5d |...*corn|erRgn[i]|
|00001260| 00 1c 00 00 0a 84 00 60 | 00 59 b1 64 00 00 0d 63 |.......`|.Y.d...c|
|00001270| 6f 72 6e 65 72 52 67 6e | 5b 69 5d 20 00 10 00 00 |ornerRgn|[i] ....|
|00001280| 0a 84 00 60 00 59 b1 54 | 00 00 01 69 00 20 00 00 |...`.Y.T|...i. ..|
|00001290| 09 d5 00 5a 00 59 b1 44 | 80 00 00 e3 01 3c 01 8c |...Z.Y.D|.....<..|
|000012a0| 02 7c 94 20 00 00 00 00 | 00 00 01 72 00 1a 00 00 |.|. ....|...r....|
|000012b0| 09 ec 00 5b 00 59 b0 c0 | 00 00 0b 4d 42 61 72 48 |...[.Y..|...MBarH|
|000012c0| 65 69 67 68 74 20 00 38 | 00 00 05 4d 00 2b 00 59 |eight .8|...M.+.Y|
|000012d0| b0 b0 80 00 00 2a 00 06 | 00 91 00 a2 94 20 00 00 |.....*..|..... ..|
|000012e0| 00 00 00 00 19 28 2a 2a | 47 65 74 47 72 61 79 52 |.....(**|GetGrayR|
|000012f0| 67 6e 28 29 29 2e 72 67 | 6e 42 42 6f 78 20 00 2e |gn()).rg|nBBox ..|
|00001300| 00 00 05 4d 00 2b 00 59 | b0 44 80 00 00 e3 01 3c |...M.+.Y|.D.....<|
|00001310| 01 8c 02 7c 94 20 00 00 | 00 00 00 00 0f 2a 2a 47 |...|. ..|.....**G|
|00001320| 65 74 47 72 61 79 52 67 | 6e 28 29 20 00 1c 00 00 |etGrayRg|n() ....|
|00001330| 05 4d 00 2b 00 59 af d4 | 00 00 0d 2a 47 65 74 47 |.M.+.Y..|...*GetG|
|00001340| 72 61 79 52 67 6e 28 29 | 00 1c 00 00 05 4d 00 2b |rayRgn()|.....M.+|
|00001350| 00 59 af c4 00 00 0d 47 | 65 74 47 72 61 79 52 67 |.Y.....G|etGrayRg|
|00001360| 6e 28 29 20 00 32 00 00 | 06 26 00 33 00 59 af b4 |n() .2..|.&.3.Y..|
|00001370| 80 00 00 c8 01 3c 01 71 | 02 7c 94 20 00 00 00 00 |.....<.q|.|. ....|
|00001380| 00 00 13 28 2a 2a 6d 42 | 61 72 52 67 6e 29 2e 72 |...(**mB|arRgn).r|
|00001390| 67 6e 42 42 6f 78 00 28 | 00 00 06 26 00 33 00 59 |gnBBox.(|...&.3.Y|
|000013a0| af 48 80 00 00 e3 01 3c | 01 8c 02 7c 94 20 00 00 |.H.....<|...|. ..|
|000013b0| 00 00 00 00 09 2a 2a 6d | 42 61 72 52 67 6e 00 18 |.....**m|BarRgn..|
|000013c0| 00 00 06 26 00 33 00 59 | ae d8 00 00 09 2a 6d 42 |...&.3.Y|.....*mB|
|000013d0| 61 72 52 67 6e 20 00 16 | 00 00 06 26 00 33 00 59 |arRgn ..|...&.3.Y|
|000013e0| ae c8 00 00 07 6d 42 61 | 72 52 67 6e 00 20 00 00 |.....mBa|rRgn. ..|
|000013f0| 09 d5 00 5a 00 59 ae 2c | 80 00 00 d9 01 59 01 82 |...Z.Y.,|.....Y..|
|00001400| 02 99 94 20 00 00 00 00 | 00 00 01 72 00 00 01 00 |... ....|...r....|
|00001410| 00 00 04 0c 00 00 03 0c | 00 00 00 5a 00 e9 f0 a4 |........|...Z....|
|00001420| 28 c4 00 00 00 1c 00 5a | 00 02 4d 50 53 52 00 00 |(......Z|..MPSR..|
|00001430| 00 1a 42 4b 50 54 00 00 | 00 26 44 54 56 55 00 00 |..BKPT..|.&DTVU..|
|00001440| 00 32 03 ed ff ff 00 00 | 00 00 00 00 00 00 6f 49 |.2......|......oI|
|00001450| ff ff 00 00 00 4c 00 00 | 00 00 51 e0 ff ff 00 00 |.....L..|..Q.....|
|00001460| 00 5a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.Z......|........|
|00001470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+